package com.applcn.order.repo.entity;

import com.applcn.core.base.BaseEntity;
import com.applcn.order.constant.OrderStatusEnum;
import com.applcn.order.constant.OrderTypeEnum;
import lombok.Data;

/**
 * com.applcn.order.repo
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-20 10:48
 */
@Data
public class OrderLogEntity extends BaseEntity {

    private static final long serialVersionUID = 7635355103576354399L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单编号
     */
    private Long orderNo;

    /**
     * 商户id-主账号
     */
    private Long merchantId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单类型 0-充值余额 1-购买商品 2-购买付费版店铺
     */
    private OrderTypeEnum orderType;

    /**
     * 订单状态 0-待支付 1-已支付/待发货 2-已发货/待收货 3-已收货/待评价
     * 4-已完成/已评价 5-申请退款/待退款 6-退款成功/已退款 7-拒绝退款 8-订单超时 9-已取消 10-已关闭
     */
    private OrderStatusEnum orderStatus;
}
